package cn.car91.bean;

import java.io.Serializable;
import java.util.Date;

/**
 * 文章类
 *
 * @author 周海刚
 * @Date 2014-9-22
 */

public class Article implements Serializable {
    private int aid;
    private String title;
    private String content;
    private Integer scan = 0;
    private Date time;
    private String pic = "";
    private User user;
    private Boolean deleted = false;
    private ArticleType articleType;

    public Article() {
    }

    public Article(int aid, String title, Integer scan, Date time, Boolean deleted) {
        this.aid = aid;
        this.time = time;
        this.title = title;
        this.scan = scan;
        this.deleted = deleted;
    }

    public int getAid() {
        return aid;
    }

    public void setAid(int aid) {
        this.aid = aid;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getScan() {
        return scan;
    }

    public void setScan(Integer scan) {
        this.scan = scan;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public Boolean getDeleted() {
        return deleted;
    }

    public void setDeleted(Boolean deleted) {
        this.deleted = deleted;
    }

    public ArticleType getArticleType() {
        return articleType;
    }

    public void setArticleType(ArticleType articleType) {
        this.articleType = articleType;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }
}
